package com.hu.zhcc.shiro.service.xsf.impl;

import com.hu.zhcc.shiro.dao.xsf.TDiseaseMapper;
import com.hu.zhcc.shiro.entity.xsf.pojo.TDisease;
import com.hu.zhcc.shiro.service.xsf.TDiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class TDiseaseImpl implements TDiseaseService {
    @Autowired
    private TDiseaseMapper tDiseaseMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tDiseaseMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(TDisease record) {
        return tDiseaseMapper.insertSelective(record);
    }

    @Override
    public TDisease selectByPrimaryKey(Integer id) {
        return tDiseaseMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<TDisease> queryDiseaseByMemberId(Integer memberId) {
        return tDiseaseMapper.queryDiseaseByMemberId(memberId);
    }

    @Override
    public List<TDisease> queryDiseaseByMemberId1(Integer memberId) {
        return tDiseaseMapper.queryDiseaseByMemberId1(memberId);
    }

    @Override
    public int deleteByMemberId(Integer memberId) {
        return tDiseaseMapper.deleteByMemberId(memberId);
    }

    @Override
    public int updateByPrimaryKeySelective(TDisease record) {
        return tDiseaseMapper.updateByPrimaryKeySelective(record);
    }

}
